<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>UCARPP: includes/gMatrix.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">UCARPP
   &#160;<span id="projectnumber">1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('gMatrix_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">includes/gMatrix.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="gMatrix_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00005"></a>00005 <span class="preprocessor">#ifndef GMATRIX_H_</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define GMATRIX_H_</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;<a class="code" href="edgeID_8h.html">edgeID.h</a>&quot;</span>
<a name="l00010"></a>00010 
<a name="l00012"></a><a class="code" href="gMatrix_8h.html#ab2c41215b98f316fe94885cf46f02e29">00012</a> <span class="preprocessor">#define NOT_GATHERED -1</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00017"></a><a class="code" href="structGMatrix.html">00017</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structGMatrix.html">GMatrix</a>{
<a name="l00019"></a><a class="code" href="structGMatrix.html#ab9625dcd042ba9a633fb563c97998638">00019</a>         <span class="keywordtype">int</span>** <a class="code" href="structGMatrix.html#ab9625dcd042ba9a633fb563c97998638">matrix</a>;
<a name="l00021"></a><a class="code" href="structGMatrix.html#a857227123cabfef2e9a3032604d1ce1a">00021</a>         <span class="keywordtype">int</span>* <a class="code" href="structGMatrix.html#a857227123cabfef2e9a3032604d1ce1a">N</a>;
<a name="l00022"></a>00022 } <a class="code" href="gMatrix_8h.html#ab8c4af12319bc3765212016cf5445a5c">GMatrix</a>;
<a name="l00023"></a>00023 
<a name="l00025"></a><a class="code" href="gMatrix_8h.html#a8668af44d44e4df02f8db2210adc4982">00025</a> <span class="keyword">typedef</span> <a class="code" href="structGMatrix.html">GMatrix</a>* <a class="code" href="gMatrix_8h.html#a8668af44d44e4df02f8db2210adc4982">PGMatrix</a>;
<a name="l00026"></a>00026 
<a name="l00038"></a>00038 <a class="code" href="structGMatrix.html">PGMatrix</a> <a class="code" href="gMatrix_8h.html#aa7c34686fbe4ead2d3a4c354565bda0a">initGMatrix</a>(<span class="keywordtype">int</span>* _N, <span class="keywordtype">int</span> _basevalue);
<a name="l00039"></a>00039 
<a name="l00048"></a>00048 <span class="keywordtype">void</span> <a class="code" href="gMatrix_8h.html#aff58909e3b768c5f155cb4cc570abadb">freeGMatrix</a>(<a class="code" href="structGMatrix.html">PGMatrix</a> matrix);
<a name="l00049"></a>00049 
<a name="l00076"></a>00076 <a class="code" href="structGMatrix.html">PGMatrix</a> <a class="code" href="gMatrix_8h.html#a59e42cb9751a14215fcf6ba9fc7fbcf6">cloneGMatrix</a>(<a class="code" href="structGMatrix.html">PGMatrix</a> matrix);
<a name="l00077"></a>00077 
<a name="l00083"></a>00083 <span class="keywordtype">void</span> <a class="code" href="gMatrix_8h.html#a16918ac489e56a65e094ff74c1ef9da5">printGMatrix</a>(FILE* f, <a class="code" href="structGMatrix.html">PGMatrix</a> matrix);
<a name="l00084"></a>00084 
<a name="l00085"></a>00085 <span class="comment">// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~QUERYING~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span>
<a name="l00096"></a>00096 <span class="comment"></span><span class="keywordtype">int</span> <a class="code" href="gMatrix_8h.html#aaf280fbab5859ed2ed00952a71788397">whoGathersEdge</a>(<a class="code" href="structGMatrix.html">PGMatrix</a> pgm, <a class="code" href="structEdgeID.html">PedgeID</a> pe);
<a name="l00097"></a>00097 
<a name="l00109"></a>00109 <span class="keywordtype">bool</span> <a class="code" href="gMatrix_8h.html#a751162c0808d8bb942d02a1bdea1ec8a">isEdgeGathered</a>(<a class="code" href="structGMatrix.html">PGMatrix</a> pgm, <a class="code" href="structEdgeID.html">PedgeID</a> pe);
<a name="l00110"></a>00110 
<a name="l00123"></a>00123 <span class="keywordtype">bool</span> <a class="code" href="gMatrix_8h.html#a986e2aa8b907c502bc90c43720d7dfd8">amIGatheringEdge</a>(<a class="code" href="structGMatrix.html">PGMatrix</a> p_gMatrix, <a class="code" href="structEdgeID.html">PedgeID</a> p_edgeID, <span class="keywordtype">int</span> k);
<a name="l00124"></a>00124 
<a name="l00136"></a>00136 <span class="keywordtype">bool</span> <a class="code" href="gMatrix_8h.html#a864195e0b74f3b55c4ff17c80c148010">releaseIfImGatheringEdge</a>(<a class="code" href="structGMatrix.html">PGMatrix</a> p_gMatrix, <a class="code" href="structEdgeID.html">PedgeID</a> p_edgeID, <span class="keywordtype">int</span> k);
<a name="l00137"></a>00137 
<a name="l00156"></a>00156 <span class="keywordtype">bool</span> <a class="code" href="gMatrix_8h.html#a8b7e4bf17f06761e65a48e8dd415e826">tryToGatherEdge</a>(<a class="code" href="structGMatrix.html">PGMatrix</a> pgm, <a class="code" href="structEdgeID.html">PedgeID</a> pe, <span class="keywordtype">int</span> k);
<a name="l00157"></a>00157 
<a name="l00175"></a>00175 <span class="keywordtype">void</span> <a class="code" href="gMatrix_8h.html#a44cbe441c402fb796126df3182862d18">gatherEdge</a>(<a class="code" href="structGMatrix.html">PGMatrix</a> pgm, <a class="code" href="structEdgeID.html">PedgeID</a> pe, <span class="keywordtype">int</span> k);
<a name="l00176"></a>00176 
<a name="l00178"></a>00178 <span class="keywordtype">void</span> <a class="code" href="gMatrix_8h.html#a840eba81029c72a610c3ba9fa794c336">releaseGatherEdge</a>(<a class="code" href="structGMatrix.html">PGMatrix</a> pgm, <a class="code" href="structEdgeID.html">PedgeID</a> pe);
<a name="l00179"></a>00179 
<a name="l00180"></a>00180 <span class="preprocessor">#endif </span><span class="comment">/* GMATRIX_H_ */</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="gMatrix_8h.html">gMatrix.h</a>      </li>

    <li class="footer">Generated on Thu Jun 27 2013 11:34:36 for UCARPP by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
